<!DOCTYPE html>
<html>
<head>
    <script src="jquery.js"></script>

</head>
<body>

	<script>
            function getajax(){
		$.ajax({
  			 type: "POST",
  			 url: "ajax.php",
 			 data: "name=John&location=Boston",
   			 success: function(msg){
     			        			alert( "Data Saved: " + msg );
 						  }
			 });
            };
	</script>	

<p>element p </p>

<?php echo "hello!";?>

   
            
            <input name="ok" type="submit" onclick="getajax()" />
            
        


</body>
</html>

<?php



?>
